var marker;
				var zoomSize = 18;
				var map = new BMap.Map("l-map");
				var lon = 120.592412; //默认为苏州市
				var lat = 31.303565;
	
				//业务处理，获取业务中的经纬度，有则处理，没有则用默认苏州
				if(typeof getBizPoint == "function") {
					var pointJson = getBizPoint();
					lon = pointJson.lon;
					lat = pointJson.lat;
				}
	
				//确定中心位置
				var point = new BMap.Point(lon, lat);
				map.centerAndZoom(point, zoomSize);
	
				//标注
				marker = new BMap.Marker(point); // 创建标注
				map.addOverlay(marker); // 将标注添加到地图中
				marker.enableDragging(); // 可拖拽
				marker.addEventListener("dragend", setBizValue);
	
				// 添加带有定位的导航控件
				var navigationControl = new BMap.NavigationControl({
					// 靠左上角位置
					anchor: BMAP_ANCHOR_TOP_LEFT,
					// LARGE类型
					type: BMAP_NAVIGATION_CONTROL_LARGE,
					// 启用显示定位
					enableGeolocation: true
				});
				map.addControl(navigationControl);
	
				var geoc = new BMap.Geocoder();
	
				//输入地址事件处理 start
				var ac = new BMap.Autocomplete( //建立一个自动完成的对象
					{
						"input": "suggestId",
						"location": map
					});
	
				ac.addEventListener("onhighlight", function(e) { //鼠标放在下拉列表上的事件
					var str = "";
					var _value = e.fromitem.value;
					var value = "";
					if(e.fromitem.index > -1) {
						value = _value.province + _value.city + _value.district + _value.street + _value.business;
					}
					str = "FromItem<br />index = " + e.fromitem.index + "<br />value = " + value;
	
					value = "";
					if(e.toitem.index > -1) {
						_value = e.toitem.value;
						value = _value.province + _value.city + _value.district + _value.street + _value.business;
					}
					str += "<br />ToItem<br />index = " + e.toitem.index + "<br />value = " + value;
					G("searchResultPanel").innerHTML = str;
				});
	
				var myValue;
				ac.addEventListener("onconfirm", function(e) { //鼠标点击下拉列表后的事件
					var _value = e.item.value;
					myValue = _value.province + _value.city + _value.district + _value.street + _value.business;
					G("searchResultPanel").innerHTML = "onconfirm<br />index = " + e.item.index + "<br />myValue = " + myValue;
					setPlace();
					console.log(myValue);
					//$("#suggestId").css({"background":"none"});
				});
	
				function setPlace() {
					map.clearOverlays(); //清除地图上所有覆盖物
					function myFun() {
						var pp = local.getResults().getPoi(0).point; //获取第一个智能搜索的结果
						setBizValueForPoint(pp);
						map.centerAndZoom(pp, zoomSize);
						marker = new BMap.Marker(pp);
						marker.enableDragging(); // 可拖拽
						map.addOverlay(marker); //添加标注
						marker.addEventListener("dragend", setBizValue);
					}
					var local = new BMap.LocalSearch(map, { //智能搜索
						onSearchComplete: myFun
					});
					local.search(myValue);
				}
	
				function G(id) {
					return document.getElementById(id);
				}
				//输入地址事件处理 end
	
				//地址转坐标
				function addrSearch(serachAddr) {
					// 创建地址解析器实例
					var myGeo = new BMap.Geocoder();
					// 将地址解析结果显示在地图上,并调整地图视野
					if(!serachAddr) {
						serachAddr = $("#suggestId").val();
					}
					myGeo.getPoint(serachAddr, function(point) {
						if(point) {
							setBizValueForPoint(point);
							map.clearOverlays();
							map.centerAndZoom(point, zoomSize);
							marker = new BMap.Marker(point);
							marker.enableDragging(); // 可拖拽
							map.addOverlay(marker); //添加标注
							marker.addEventListener("dragend", setBizValue);
	
						} else {
							console.log("search click no results!")
						}
					});
	
				}
	
				//业务方法 start
				//根据事件，设置经纬度和地址
				function setBizValue(e) {
					var point = e.point;
					setBizValueForPoint(point);
				}
	
				//根据Point，设置经纬度和地址
				function setBizValueForPoint(point) {
					lon = point.lng;
					lat = point.lat;
					geoc.getLocation(point, function(rs) {
						var addComp = rs.addressComponents;
						addr = addComp.province + addComp.city + addComp.district + addComp.street + addComp.streetNumber;
						if(typeof setBizFun == "function") {
							setBizFun({
								lon: lon,
								lat: lat,
								addr: addr
							});
						}
					});
	
				}
	
				//根据marker，设置经纬度和地址
				function setBizValueForMarker() {
					var point = marker.getPosition();
					setBizValueForPoint(point);
					console.log(point);
				}
	
				//end